From: Chong Yidong Date: Tue, 4 Aug 2009 20:06:03 +0000 (+0000) Subject: * abbrev.el (insert-abbrev-table-description): Prettify output. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11221 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=759e38f6afbda1cacaded868f7757d61d67f6566;p=emacs.git * abbrev.el (insert-abbrev-table-description): Prettify output. Suggested by Karl Chen. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c1e9cb4df6..42b40e1442f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-08-04 Chong Yidong + + * abbrev.el (insert-abbrev-table-description): Prettify output. + Suggested by Karl Chen. + 2009-08-04 Dmitry Dzhus * progmodes/gdb-mi.el (gdb-frame-number): Initialize with nil. diff --git a/lisp/abbrev.el b/lisp/abbrev.el index bfec59b7b6b..4a2c57ddd60 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el @@ -887,9 +887,11 @@ Abbrevs marked as \"system abbrevs\" are omitted." (insert "\n\n")) (insert "(define-abbrev-table '") (prin1 name) - (insert " '(") - (mapc 'abbrev--write symbols) - (insert " ))\n\n")) + (if (null symbols) + (insert " '())\n\n") + (insert "\n '(\n") + (mapc 'abbrev--write symbols) + (insert " ))\n\n"))) nil))) (put 'define-abbrev-table 'doc-string-elt 3)